package com.xszx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xszx.entity.TContract;
import com.xszx.service.TContractService;
import com.xszx.mapper.TContractMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 34129
* @description 针对表【t_contract】的数据库操作Service实现
* @createDate 2024-01-08 20:40:47
*/
@Service
public class TContractServiceImpl extends ServiceImpl<TContractMapper, TContract>
    implements TContractService{

    @Autowired
    private TContractMapper contractMapper;

    @Override
    public List<TContract> selectContract(String dname) {
        return contractMapper.selectContract(dname);
    }

    @Override
    public int insertContract(TContract contract) {
        return contractMapper.insert(contract);
    }

    @Override
    public TContract selectContractByCid(long cid, String armorDept) {
        return contractMapper.selectContractByCid(cid,armorDept);
    }

    @Override
    public int udpateContractStatus(long cid, String cstatus) {
        return contractMapper.udpateContractStatus(cid,cstatus);
    }

    @Override
    public TContract selectContractByAid(Long aid,String cstatus) {
        return contractMapper.selectContractByAid(aid,cstatus);
    }

}




